package cn.ljn.basic.query;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {


    // 加条件
    private String keyword;

    private List<Long> detailId;
    private Integer currentPage;
    private Integer pageSize;
    public Integer getStart() {
        return (currentPage - 1) * pageSize;
    }

}
